package com.itheima.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class ServletContainersInitConfig extends AbstractAnnotationConfigDispatcherServletInitializer {

  protected Class<?>[] getServletConfigClasses() {
    return new Class[]{SpringMvcConfig.class};
  }

  protected String[] getServletMappings() {
    return new String[]{"/"};
  }

  protected Class<?>[] getRootConfigClasses() {
    return new Class[0];
  }
}

